-- GENERATED SPELL FOR [Skettis Windwalker] --


function spell0_21649(pUnit, Event) --@Arcane Bolt,n/a--
pUnit:FullCastSpellOnTarget(13901,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21649', 2500, 1)
end

function spell1_21649(pUnit, Event) --@Cyclone,Self--
pUnit:FullCastSpellOnTarget(40578,pUnit)
pUnit:RegisterEvent('Sorts_21649', 6500, 1)
end

function spell2_21649(pUnit, Event) --@Shadow Mend,Heal--
pUnit:FullCastSpellOnTarget(34110,pUnit)
pUnit:RegisterEvent('Sorts_21649', 2500, 1)
end

function Sorts_21649(pUnit, Event)
local choix_sorts_21649 = math.random(0, 2)
if choix_sorts_21649 == 0 then
pUnit:RegisterEvent('spell0_21649', 1, 1)
end
if choix_sorts_21649 == 1 then
pUnit:RegisterEvent('spell1_21649', 1, 1)
end
if choix_sorts_21649 == 2 then
pUnit:RegisterEvent('spell2_21649', 1, 1)
end
end

function mob21649_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21649', math.random(1500, 3000), 1)
end

function mob21649_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21649_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21649_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21649, 1, 'mob21649_Action')
RegisterUnitEvent(21649, 2, 'mob21649_Leave')
RegisterUnitEvent(21649, 3, 'mob21649_Kill')
RegisterUnitEvent(21649, 4, 'mob21649_Die')
